package com.ants.boot.wx.dto.selfset;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;

/**
 * @author 蚂蚁会花呗
 * @date 2022/5/27 16:22
 */
@ApiModel(value = "更新性别")
public class WxEditSexDto {

    @ApiModelProperty(value = "主键id值")
    @Min(value = 1,message = "id不能为空")
    private Integer id;

    @Range(min = 0,max = 1,message = "值只能是0或者1")
    @ApiModelProperty(value = "性别，0男，1女")
    private Integer sex;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }
}
